package fons.model.ontology.language;

public class SentenceElementMixin implements SentenceElement {
	private final SentenceElement other;
	
	public SentenceElementMixin (SentenceElement other) {
		this.other = other;
	}
	
	@Override
	public int compareTo(SentenceElement o) {
		return other.compareTo(o);
	}

	@Override
	public String getText() {
		return other.getText();
	}

	@Override
	public int getPosition() {
		return other.getPosition();
	}

	@Override
	public int getLength() {
		return other.getLength();
	}

	@Override
	public <T> boolean holds(Class<T> clazz) {
		return other.holds(clazz);
	}

	@Override
	public <T> T get(Class<T> clazz) {
		return other.get(clazz);
	}

	@Override
	public Class<?> getReferenceClass() {
		return other.getReferenceClass();
	}

	@Override
	public boolean isImplicit() {
		return other.isImplicit();
	}
}
